home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / tcl / tcl70b2.lha / tcl7.0b2 / doc / unknown.n < prev    next >
Text File  |  1993-06-16  |  2KB  |  56 lines

  1. '\"
  2. '\" Copyright (c) 1993 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/tcl/man/RCS/unknown.n,v 1.1 93/06/16 16:48:29 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS unknown tcl
  25. .BS
  26. '\" Note:  do not modify the .SH NAME line immediately below!
  27. .SH NAME
  28. unknown \- Handle attempts to use non-existent commands
  29. .SH SYNOPSIS
  30. \fBunknown \fIcmdName \fR?\fIarg arg ...\fR?
  31. .BE
  32.  
  33. .SH DESCRIPTION
  34. .PP
  35. This command doesn't actually exist as part of Tcl, but Tcl will
  36. invoke it if it does exist.
  37. If the Tcl interpreter encounters a command name for which there
  38. is not a defined command, then Tcl checks for the existence of
  39. a command named \fBunknown\fR.
  40. If there is no such command, then the interpeter returns an
  41. error.
  42. If the \fBunknown\fR command exists, then it is invoked with
  43. arguments consisting of the fully-substituted name and arguments
  44. for the original non-existent command.
  45. The \fBunknown\fR command typically does things like searching
  46. through library directories for a command procedure with the name
  47. \fIcmdName\fR, or expanding abbreviated command names to full-length,
  48. or automatically executing unknown commands as sub-processes.
  49. In some cases (such as expanding abbreviations) \fBunknown\fR will
  50. change the original command slightly and then (re-)execute it.
  51. The result of the \fBunknown\fR command is used as the result for
  52. the original non-existent command.
  53.  
  54. .SH KEYWORDS
  55. error, non-existent command
  56.